package rabbitmqConsummer.consummers;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicConsummer {
    @RabbitListener(queues = "topic_queue1")
    public void consume(String message) {
        System.out.println("Topic Consummer: " + message);
    }

    @RabbitListener(queues = "topic_queue2")
    public void consume2(String message) {
        System.out.println("Topic Consummer2: " + message);
    }

    @RabbitListener(queues = "topic_queue3")
    public void consume3(String message) {
        System.out.println("Topic Consummer3: " + message);
    }
}
